import axios from "axios";

const _baseURL = "http://127.0.0.1:3000";

const interce = axios.create({
	baseURL: _baseURL, // 基础URL
	timeout: 5000, // 超时时间
});

interce.interceptors.request.use(
	(confing) => {
		return confing;
	},
	(error) => {
		Promise.reject(error);
	}
);

interce.interceptors.response.use(
	(response) => {
		return response;
	},
	(error) => {
		Promise.reject(error);
	}
);

export default interce;
